package com.better517na.stateprocess.model;

public class StateContext<T> {
    private String state;

    private String msg;

    private T data;

    private OrderStateEvent orderStateEvent;

    private OrderInfo orderInfo;

    public StateContext(OrderStateEvent orderStateEvent, OrderInfo orderInfo) {
        this.orderStateEvent = orderStateEvent;
        this.orderInfo = orderInfo;
    }

    public OrderInfo getOrderInfo() {
        return orderInfo;
    }

    public void setOrderInfo(OrderInfo orderInfo) {
        this.orderInfo = orderInfo;
    }

    public OrderStateEvent getOrderStateEvent() {
        return orderStateEvent;
    }

    public void setOrderStateEvent(OrderStateEvent orderStateEvent) {
        this.orderStateEvent = orderStateEvent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
